home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
printing
/
pnmtoprt.0
/
pnmtoprt
/
pnmtoprt-2.0
/
Makefile
< prev
next >
Wrap
Makefile
|
1996-03-28
|
1KB
|
48 lines
SHELL = /bin/bash
CC = gcc
CFLAGS = -O2 -m486 -pipe
#CFLAGS = -O2 -m486 -pipe -traditional
#CFLAGS = -g
LFLAGS = -s
#LFLAGS =
DRIVERS = necp6.o
OBJS = pnmtoprt.o $(DRIVERS) pnmread.o
INCS = printers.h pnmread.h
FILES = AUTHOR COPYING EXAMPLE INSTALL README TODO IAFA-PACKAGE Makefile
DELETE = $(FILES) $(OBJS:.o=.c) $(INCS) girldemo.gif girldemo.uu\
pnmtoprt.txt pnmtoprt-$(VERSION).txt
DISTRIB = $(FILES) $(OBJS:.o=.c) $(INCS) girldemo.gif pnmtoprt
RCSGET = $(FILES) $(OBJS:.o=.c) $(INCS) girldemo.uu
VERSION = 2.0
pnmtoprt : $(OBJS)
$(CC) $(LFLAGS) -o $@ $(OBJS)
pnmtoprt.c : printers.h
$(DRIVERS:.o=.c) pnmread.c : pnmread.h
all : pnmtoprt $(FILES) girldemo.gif pnmtoprt.tgz
co :
for I in $(RCSGET); do if [ ! -f $$I ]; then co $$I; fi; done
girldemo.gif : girldemo.uu
uudecode $?
clean:
rm -f *.o pnmtoprt *~ girldemo.gif pnmtoprt-$(VERSION).tar.gz
for I in $(DELETE); do if [ ! -w $$I ]; then rm -f $$I ; fi; done
distrib : pnmtoprt-$(VERSION).tar.gz
pnmtoprt-$(VERSION).tar.gz : $(DISTRIB) pnmtoprt-$(VERSION).txt
mkdir pnmtoprt-$(VERSION)
cp $(DISTRIB) pnmtoprt-$(VERSION)
tar cvf - pnmtoprt-$(VERSION) | gzip -9 >$@
rm -rf pnmtoprt-$(VERSION)
pnmtoprt-$(VERSION).txt : pnmtoprt.txt
cp $? $@